home *** CD-ROM | disk | FTP | other *** search
/ United Public Domain Gold 4 / United Public Domain Gold 4.iso / scope / sc093.dms / sc093.adf / VirusX / Source.LZH / virusx.h < prev   
C/C++ Source or Header  |  1989-10-20  |  2KB  |  55 lines

  1.  
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <exec/types.h>
  5. #include <intuition/intuition.h>
  6. #include <exec/execbase.h>
  7. #include <exec/memory.h>
  8. #include <libraries/dos.h>        
  9. #include <libraries/dosextens.h>
  10. #include <String.h>
  11. #include <intuition/simplereq.h>
  12. #include <exec/execbase.h>
  13. #include <devices/bootblock.h>
  14. #include <devices/trackdisk.h>
  15. #include <proto/all.h>
  16. #include <ctype.h>
  17.  
  18.  
  19. struct VirusInfo {
  20.     char *Name;            /* It's Textual Name         */
  21.     short NumFound;            /* How many we've found        */
  22.     short Flags;            /* Flags...            */
  23.     char LongWordOffsets[2];    /* For finding on Disk - Offset */
  24.     ULONG WhatToExpect[2];        /* and what to look there for   */
  25.     ULONG CoolCapture;        /* Cool Capture Vector...       */
  26.     short HowToLook[2];        /* See defines above...        */
  27.     short LookOffset[2];
  28.     unsigned long WhatToLookFor[2];
  29.  
  30.     short DoToThis[2];
  31.     short AtOffset[2];        /* Removal Data */
  32.     unsigned long WithThis[2];
  33.  
  34.     char (*Handler)(void);        /* Function to call that will   
  35.                        do additional checking       */
  36.     };
  37.  
  38.  
  39. #define VF_COPYCOUNT     (1<<0)
  40.  
  41. /*
  42.    When looking, if this flag is set, it means start here, and maybe use
  43.    HTL_INDIRECT to look through it rather than at it.  When Setting, 
  44.    if this is set, then write to THIS address, and assume INDIRECT
  45.    to get the data from.  IE, you could set the DOIO vector to point
  46.    to what is at the address it's at now plus 16...
  47. */
  48. #define HTL_DOIO        (1<<2)
  49. #define HTL_TDM1C        (1<<3)
  50. #define HTL_LOOKINDIRECT    (1<<4)
  51. #define HTL_SETTO        (1<<5)
  52. #define HTL_ABSOLUTE        (1<<6)
  53. #define HTL_CLEARKICKTAGS    (1<<7)
  54. #define HTL_SETLONG        (1<<8)
  55.